﻿using SkiaSharp.Views.Maui;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MauiDemo
{
    internal class GraphicsDrawable:IDrawable
    {
        public void Draw(ICanvas canvas, RectF dirtyRect)
        {
            // Drawing code goes here
           


            canvas.DrawRectangle(new Rect { X = 0, Y = 0, Width = 400, Height =300 });

            canvas.StrokeColor=Colors.Red;

            canvas.Translate(100, 50);

            canvas.Rotate(30);
            canvas.DrawRectangle(new Rect { X = 0, Y = 0, Width = 30, Height = 30 });


            canvas.DrawCircle(20,20,20);
        }
    }
}
